Most music content exists in Standard MIDI Files (SMF), which have a standard format. All sequencing and composition programs let you save or export files in this format. QuickTime provides facilities for reading an SMF and converting it into a QuickTime movie. During any kind of conversion, the SMF is assumed to be scored for a General MIDI device, and MIDI channel 10 is assumed to be a drum track.
The conversion to a QuickTime movie can happen in one of several ways. Because it is implemented in a QuickTime 'eat ' component, the conversion happens automatically in most cases. Any application that uses the StandardGetFile routine to open a movie can also open 'Midi' files transparently, and can transparently paste Clipboard contents of type 'Midi' into a movie shown with the standard movie controller.
To explicitly convert a file or handle into a movie, your application can use the Movie Toolbox routines ConvertFileToMovieFile and PasteHandleIntoMovie , respectively.
When authoring MIDI files to be converted to QuickTime music movies, two MIDI system-exclusive messages can be used for more precise control of the MIDI import process. Note that QuickTime data is divided into media samples. Within video tracks, each video frame is considered one sample; in music tracks, each sample can contain several seconds worth of musical information.
Applications can define their own system-exclusive messages of the form F0 11 7F ww xx yy zz ... application-defined data ... F7 , where ww xx yy zz is the application's unique signature with the high bits cleared. This is guaranteed not to interfere with Apple's or any other manufacturer's use of system-exclusive codes.
| Previous | Chapter Contents | Chapter Top | Next |